<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // function fn(province, city, area) {
        //     return `${province}省${city}市${area}区`
        // }

        // console.log('浙江', '杭州', '拱墅');
        // console.log('浙江', '杭州', '下沙');
        // console.log('浙江', '杭州', '西湖');


        function fn(province) {
            return function (city) {
                return function (area) {
                    return `${province}省${city}市${area}区`
                }
            }
        }


        var fn1 = fn('浙江')('杭州')
        console.log(fn1('下沙'));
        console.log(fn1('拱墅'));

        // var fn1 = fn('浙江')
        // var fn2 = fn1('杭州')

        // console.log(fn2('下沙'));
        // console.log(fn2('拱墅'));


    </script>
</body>

</html>